import request from "@/utils/request";

let api = {};
api.accountLogin = data => {
    return request({
        url: "admin/login",
        method: "post",
        data: data,
    });
};
api.refreshQrcode = data => {
    return request({
        url: "getQrcodeContent",
        method: "get",
        data: data
    });
};
api.check = data => {
    return request({
        url: "check",
        method: "get",
        data: data
    });
};
api.is_login = data => {
    return request({
        url: "administrator/is_login",
        method: "get",
        data: data
    });
};
api.logout = data => {
    return request({
        url: "admin/clearsess",
        method: "post",
        data: data
    });
};
api.change_audit_state = data => {
    return request({
        url: "back/updateprst",
        method: "post",
        data: data
    });
};
api.set_audit_state = data => {
    return request({
        url: "back/selectprst",
        method: "post",
        data: data
    });
};


export default api;
